package bjut.zrpc.core.optimization.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: zhuzhiming
 * @Date: 2022/6/23 18:45
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ZRpcService {

    String group() default "";

    String version() default "1";

    int timeout() default 1000;

    boolean limit() default false;

    int limitCount() default 10;

    int inTime() default 1000;

    int duration() default 3000;

    boolean concurrencyControl() default false;

    int concurrency() default 100;

}
